package com.efast.dmom.mgmt.controller.master;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.master.TmBasPart;
import com.efast.dmom.mgmt.service.master.TmBasPartService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value="/tmBasPart")
public class TmBasPartController {
	@Autowired
	TmBasPartService tmBasPartService;
	
	@RequestMapping(value="/save")
	public @ResponseBody ResultBean save(@RequestBody TmBasPart tmBasPart) {
		ResultBean result = new ResultBean(true,"'");
		tmBasPartService.save(tmBasPart);
		return result;
	}
}
